package ch5;

import java.util.Scanner;

public class Rectangle {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入长方形的宽和高：");
		int w = in.nextInt(), h = in.nextInt();
		// 不考虑输入错误的情况
		for (int i = 1; i <= h; i++) {
			// 一行有w个*
			for (int j = 1; j <= w; j++) {
				System.out.print("* ");
			}
			System.out.println();
		}
	}

}